package com.yunke.dto.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Size;

/**
 * 编辑个人信息DTO
 * 
 * @author yunke
 * @since 1.0.0
 */
@Data
@Schema(description = "编辑个人信息请求")
public class YunkeUserProfileDto {

    /**
     * 昵称
     */
    @Size(min = 2, max = 20, message = "昵称长度为2-20个字符")
    @Schema(description = "昵称", example = "云科用户")
    private String nickname;

    /**
     * 头像
     */
    @Schema(description = "头像URL", example = "https://example.com/avatar.jpg")
    private String avatar;

    /**
     * 性别：0-未知 1-男 2-女
     */
    @Min(value = 0, message = "性别值不正确")
    @Max(value = 2, message = "性别值不正确")
    @Schema(description = "性别：0-未知 1-男 2-女", example = "1")
    private Integer gender;

    /**
     * 生日
     */
    @Schema(description = "生日", example = "1990-01-01")
    private String birthday;

    /**
     * 个人简介
     */
    @Size(max = 500, message = "个人简介不能超过500个字符")
    @Schema(description = "个人简介", example = "这个人很懒，什么都没有留下")
    private String bio;

    /**
     * 职业
     */
    @Size(max = 50, message = "职业不能超过50个字符")
    @Schema(description = "职业", example = "软件工程师")
    private String profession;

    /**
     * 兴趣爱好
     */
    @Size(max = 200, message = "兴趣爱好不能超过200个字符")
    @Schema(description = "兴趣爱好", example = "编程,旅游,摄影")
    private String interests;

    /**
     * 所在城市
     */
    @Size(max = 50, message = "所在城市不能超过50个字符")
    @Schema(description = "所在城市", example = "北京市")
    private String city;

    /**
     * 个人标签
     */
    @Size(max = 200, message = "个人标签不能超过200个字符")
    @Schema(description = "个人标签", example = "技术宅,吃货,旅行达人")
    private String tags;
} 